package com.tistory.devdiaries.aop;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class AOPTest {
	
	@Pointcut("execution(public * com.tistory.login.service..*(..))")
	public void pointcut(){}
	
	@Before("pointcut()")
	public void beforeMethod() {
//		System.out.println("beforeMethod()호출!");
	}
	
	@After(("pointcut()"))
	public void afterMethod() {
//		System.out.println("afterMethod()호출!");
	}

}
